<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>个人信息</title>
	<meta name="renderer" content="webkit">	
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">	
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">	
	<meta name="apple-mobile-web-app-status-bar-style" content="black">	
	<meta name="apple-mobile-web-app-capable" content="yes">	
	<meta name="format-detection" content="telephone=no">	
	<link rel="stylesheet" type="text/css" href="/static/manage/common/layui/css/layui.css" media="all">
	<link rel="stylesheet" type="text/css" href="/static/manage/common/bootstrap/css/bootstrap.css" media="all">
	<link rel="stylesheet" type="text/css" href="/static/manage/common/global.css" media="all">
	<link rel="stylesheet" type="text/css" href="/static/manage/css/personal.css" media="all">
	<script type="text/javascript">
			function checkAll(){
				var qx = document.getElementById("qx");
				var qxson = document.getElementsByClassName("ck");
				for (var i = 0;i<qxson.length;i++) {
					qxson[i].checked=qx.checked
				}
			}
		</script>
</head>
<body>
<section class="layui-larry-box">
	<div class="larry-personal">
	    <div class="layui-tab">
            <blockquote class="layui-elem-quote news_search">
		
		<div class="layui-inline">
		    <div class="layui-input-inline">
		    	<input value="" placeholder="请输入关键字" class="layui-input search_input" type="text">
		    </div>
		    <a class="layui-btn search_btn">查询</a>
		</div><div class="layui-inline">
			<a class="layui-btn layui-btn-normal newsAdd_btn">添加文章</a>
		</div>
		<div class="layui-inline">
			<a class="layui-btn recommend" style="background-color:#5FB878">推荐文章</a>
		</div>
		<div class="layui-inline">
			<a class="layui-btn audit_btn">审核文章</a>
		</div>
		<div class="layui-inline">
			<a class="layui-btn layui-btn-danger batchDel">批量删除</a>
		</div>
		<div class="layui-inline">
			<div class="layui-form-mid layui-word-aux">本页面刷新后除新添加的文章外所有操作无效，关闭页面所有数据重置</div>
		</div>
	</blockquote>
            
		    <div class="layui-tab-content larry-personal-body clearfix mylog-info-box">
		         <!-- 操作日志 -->
                <div class="layui-tab-item layui-field-box layui-show">
                     <table class="layui-table table-hover" lay-even="" lay-skin="nob">
                          <thead>
                              <tr>
                                  <th><input type="checkbox"  id="qx" onclick="checkAll()"></th>
                                  <th>组织机构</th>
                                  <th>机构代码</th>
                                  <th>主要负责人</th>
                                  <th>电话</th>
                                  <th>传真</th>
                                  <th>自动展开</th>
                                  <th>排序号</th>
                                  <th>节点图标</th>
                                  <th>备注</th>
                              </tr>
                          </thead>
                          <c:forEach items="${sysdeptData }" var="data">
								<thead>
									<tr>
										<th><input type="checkbox"  class="ck" value="${data.dept_id }"></th>
										<th>${data.dept_name }</th>
										<th>${data.dept_code }</th>
										<th>${data.manager }</th>
										<th>${data.phone }</th>
										<th>${data.fax }</th>
										<th>
											<c:if test="${data.is_auto_expand==1 }">是</c:if>
											<c:if test="${data.is_auto_expand==2 }">否</c:if>
										</th>
										<th>${data.sort_no }</th>
										<th>${data.icon_name }</th>
										<th>${data.remark }</th>
									</tr>
								</thead>
							</c:forEach>
                     </table>
                     <div class="larry-table-page clearfix">
                          <a href="javascript:;" class="layui-btn layui-btn-small"><i class="iconfont icon-shanchu1"></i>删除</a>
				          <div id="page" class="page"></div>
			         </div>
			    </div>
		    </div>
		</div>
	</div>
</section>
<script type="text/javascript" src="/static/manage/common/layui/layui.js"></script>
<script type="text/javascript" src="/static/manage/js/newslist.js"></script>
<script type="text/javascript">
	layui.use(['jquery','layer','element','laypage','table'],function(){
	      window.jQuery = window.$ = layui.jquery;
	      window.layer = layui.layer;
          var element = layui.element(),
              laypage = layui.laypage;
			 
          laypage({
					cont: 'page',
					pages: 10 //总页数
						,
					groups: 5 //连续显示分页数
						,
					jump: function(obj, first) {
						//得到了当前页，用于向服务端请求对应数据
						var curr = obj.curr;
						if(!first) {
							//layer.msg('第 '+ obj.curr +' 页');
						}
					}
				});

          laypage({
					cont: 'page2',
					pages: 10 //总页数
						,
					groups: 5 //连续显示分页数
						,
					jump: function(obj, first) {
						//得到了当前页，用于向服务端请求对应数据
						var curr = obj.curr;
						if(!first) {
							//layer.msg('第 '+ obj.curr +' 页');
						}
					}
				});
    });
</script>
</body>
</html>